package com.yanfan.electronicPatrol;

import com.sun.jna.Library;
import com.sun.jna.Native;

/**
 * 加载动态库
 */
public interface LandwellLibrary extends Library {
    LandwellLibrary INSTANCE = (LandwellLibrary) Native.load("landwell", LandwellLibrary.class);

    /**
     *
     * @param com 串口
     * @param boud 波特率
     * @param Rcount 条数
     * @return
     */
    int PTcomm(int com, int boud, int[] Rcount);

    /**
     *
     * @param num num为条编号
     * @param record  record[8]为8字节记录
     * @return
     */
    int PTrecord(int num, byte[] record);
}


